<?php
global $_W,$_GPC;
$tables = array();
$tables['会员表'] = 'imeepos_runner3_member';
$tables['听单记录表'] = 'imeepos_runner3_listenlog';
$tables['任务表'] = 'imeepos_runner3_tasks';
$tables['任务详情表'] = 'imeepos_runner3_detail';
$tables['支付记录表'] = 'imeepos_runner3_paylog';
$tables['帮我买'] = 'imeepos_runner3_buy';
$tables['接单记录表'] = 'imeepos_runner3_recive';
$tables['佣金记录表'] = 'imeepos_runner3_moneylog';
$tables['短信验证码表'] = 'imeepos_runner3_code';
$tables['评星表'] = 'imeepos_runner3_star';
$tables['任务留言表'] = 'imeepos_runner3_tasks_log';


if($_W['ispost']){
	$code = $_GPC['code'];
	if($code == 'imeepos'){
		global $_W,$_GPC;
		$tabless = $_GPC['table'];
		foreach($tabless as $table){
			pdo_delete($table);
			pdo_query("alter table ".tablename($table)." AUTO_INCREMENT=1;");
		}
		message('清空数据成功','','success');
	}
}
include $this->template('delete');
